Skip Headers

Oracle® Database Backup and Recovery Reference 10g Release 2 (10.2) Part Number B14194-03 |
Home | Book List | Contents | Index | Master Index | Feedback

Previous | Next
| View PDF

# releaseForMaint

Syntax

releaseForMaint::=

Description of the illustration releaseformaint.gif

Purpose

To release a sequential I/O device specified in an ALLOCATE CHANNEL FOR MAINTENANCE command. Note that maintenance channels are unaffected by ALLOCATE CHANNEL and RELEASE CHANNEL command issued within a RUN command.

Requirements

- Execute this command only at the RMAN prompt, not within a RUN block.

- You must have a maintenance channel allocated in order to release it.

Examples

Releasing a Maintenance Channel After a Delete Operation: Example This example allocates and then releases a maintenance channel to the media manager:

    ALLOCATE CHANNEL FOR MAINTENANCE DEVICE TYPE sbt;
    DELETE NOPROMPT BACKUPPIECE 100;
    RUN
    {
      ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
      BACKUP DATAFILE 1;
      RELEASE CHANNEL ch1; # releases RUN channel but not maintenance channel
    }
    RELEASE CHANNEL; # releases maintenance channel